/* 产品页面专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* 产品分类标签 */
.product-categories {
    padding: 2rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--gradient);
    border-color: var(--primary-color);
    color: white;
}

/* 产品展示 */
.products-showcase {
    padding: 4rem 0;
}

.product-detail {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-header {
    display: flex;
    align-items: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    margin-right: 2rem;
    flex-shrink: 0;
}

.product-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 产品内容 */
.product-content {
    padding: 2.5rem;
}

.product-features h3,
.product-specs h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.spec-label {
    font-weight: 500;
    color: var(--text-color);
}

.spec-value {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 产品操作按钮 */
.product-actions {
    padding: 2rem 2.5rem;
    background: var(--bg-light);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 产品对比表格 */
.product-comparison {
    padding: 4rem 0;
    background: var(--bg-light);
}

.comparison-table {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    background: white;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table th:first-child {
    text-align: left;
    background: var(--text-color);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--bg-light);
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.text-success {
    color: #10b981;
}

.text-muted {
    color: #9ca3af;
}

/* 客户案例 */
.customer-cases {
    padding: 4rem 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.case-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.case-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.case-stats span {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 联系我们CTA */
.contact-cta {
    padding: 4rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 1rem;
    }

    .tab-btn {
        flex-shrink: 0;
    }

    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .product-icon {
        margin-right: 0;
    }

    .product-info h2 {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
        align-items: center;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .product-content {
        padding: 1.5rem;
    }

    .product-header {
        padding: 2rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .spec-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .case-stats {
        justify-content: center;
    }
}

/* 动画效果 */
.product-detail {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-detail:nth-child(1) {
    animation-delay: 0.1s;
}

.product-detail:nth-child(2) {
    animation-delay: 0.2s;
}

.product-detail:nth-child(3) {
    animation-delay: 0.3s;
}

.product-detail:nth-child(4) {
    animation-delay: 0.4s;
}

.product-detail:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 过滤动画 */
.product-detail.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.product-detail.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}